<?php

use App\Middleware\ApiReqLimit;
use Elite\Infrastructure\Routing\Route;

return function(Route $route) {
    $route->setNamespace('App\Controller');

    $route->get('/', 'IndexController@index');

    $route->group('/api', function(Route $route) {
        $route->get('/{id}/info', 'IndexController@info');
    }, [ApiReqLimit::class]);

};